package net.yunxinyong.cec.service.impl;

import net.yunxinyong.cec.entity.InventoryArea;
import net.yunxinyong.cec.entity.InventoryAreaExample;
import net.yunxinyong.cec.mapper.InventoryAreaMapper;
import net.yunxinyong.cec.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private InventoryAreaMapper inventoryAreaMapper;

    @Override
    public List<InventoryArea> getList(String cede) {
        InventoryAreaExample inventoryAreaExample = new InventoryAreaExample();
        inventoryAreaExample.createCriteria().andParentCodeEqualTo(cede);
        return inventoryAreaMapper.selectByExample(inventoryAreaExample);
    }
}
